package com.eaoa.vo.pub;

import java.util.ArrayList;
import java.util.List;

import com.eaoa.vo.pub.base.BasePubModule;
import com.stony.core.util.LabelValue;

/**
 * 
 * This is the object class that relates to the PUB_PERMISSION table.
 * 
 * Any customizations belong here.
 * 
 */

public class PubModule extends BasePubModule implements LabelValue {
	
	private String parentmodule;

	/* [CONSTRUCTOR MARKER BEGIN] */

	public PubModule() {
	}

	/**
	 * 
	 * Constructor for primary key
	 * 
	 */

	public PubModule(java.lang.Long moduleno) {

		super(moduleno);

	}

	/* [CONSTRUCTOR MARKER END] */

	public String getValue() {
		return this.getModuleno().toString();
	}

	public String getLabel() {
		return this.getModulenamecn();
	}

	public String getLabelshort() {
		return getLabel();
	}

	public int compareTo(Object o) {
		return getModuleno().compareTo(((PubModule) o).getModuleno());
	}

	private String isView;

	public String getIsView() {
		return isView;
	}

	public void setIsView(String isView) {
		this.isView = isView;
	}

	private List childmenus = new ArrayList();

	public List getChildmenus() {
		return childmenus;
	}

	public void setChildmenus(List childmenus) {
		this.childmenus = childmenus;
	}

	public int getChildmenussize() {
		return childmenus.size();
	}

	public void setChildmenussize(int childmenussize) {
	}

	public String getParentmodule() {
		return parentmodule;
	}

	public void setParentmodule(String parentmodule) {
		this.parentmodule = parentmodule;
	}

}